GET
/
files
/
{id}
/
presignedurl
Retrieve presigned URL to retrieve the file
curl --request GET \
  --url https://{subdomain}.storage.{region}.nhost.run/v1/files/{id}/presignedurl \
  --header 'Authorization: Bearer <token>'
{
  "url": "https://storage.example.com/files/abc123?signature=xyz",
  "expiration": 3600
}

Authorizations

Authorization
string
header
required

API key to authorize requests.

Path Parameters

id
string
required

Unique identifier of the file

Response

File gathered successfully

Contains a presigned URL for direct file operations.

url
string
required

The presigned URL for file operations.

Example:

"https://storage.example.com/files/abc123?signature=xyz"

expiration
integer
required

The time in seconds until the URL expires.

Example:

3600